<?php
$this->beginBlock();
?>
<div id="page-layout">
	<div id="page-content" style="border:none;">
		<div id="page-content-wrapper">
			<?php if($this->hasBlock('filter')):?>
			<div class="column-content-box">
				<div class="content-box content-box-header ui-corner-all" style="margin-bottom:5px;">
					<div class="ui-state-default ui-corner-top ui-box-header ui-widget-header">
						<?php echo $this->__('button.search')?>
					</div>				
					<div id="filter_form_container" class="content-box-wrapper" style="margin:5px 0 0 10px;padding:0;">
						<?php echo $this->renderBlock('filter'); ?>
						<?php echo $this->linkButton($this->__('system.button.submit'), "submitForm('filter_form')"); ?>
						<div class="clear:both;"></div>
					</div>
				</div>
			</div>
			<?php endif; ?>
			<div class="content-box grid-container">			
			<form id="grid_form" method="post" style="clear:both;" action="<?php echo $this->buildUrl()?>">
			<div class="hastable">
			<?php echo $this->renderBlock('grid'); ?>
			</div>
			</form>
			<p align="center">
			<?php echo $this->renderBlock('pagination'); ?>
			</p>
			</div>
		</div>
	</div>
</div>
<?php
$this->endBlock();
echo $this->extend('template'.DS.'default');